<?php if(is_array($this->banners) && count($this->banners) > 0) {?>
<table>
    	<thead>
        	<tr>
            	<th class="companyStt">#</th>
                <th class="companyName"><?php echo $this->translate('page_company_name', $this->lang)?></th>
                <th class="companyLogo">Logo</th>
            </tr>
        </thead>
        <tbody>
        <?php foreach ($this->banners as $index => $banner) :?>
        <tr>
        	<td><?php echo ($this->page - 1)*$this->numRowPerPage + $index + 1?></td>
            <td><a href="<?php echo $banner['link']?>" target="_blank"><?php echo $banner['name']?></a></td>
            <td><a href="<?php echo $banner['link']?>" target="_blank">
                <img src="<?php echo $this->staticUrl . '/' . $banner['image'];?>"
                    width="<?php echo $banner['width'];?>" height="<?php echo $banner['height'];?>" class="imgCus"/>
            </a></td>
        </tr>
     <?php endforeach;?>
    </tbody>
</table>
<?php echo $this->paginationcontrolcourse($this->page, $this->totalItem, $this->numRowPerPage, 'paginationajaxforcustomer.phtml', null, null, null, null, null,$this->position);?>
<?php }?>
<div class="clear"></div>